﻿using Kele.Activity.Core;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;

namespace Kele.Activity.Web.Controllers.V1
{
    public class CommonController:SiteApiController
    {
        [HttpGet("music/list")]
        public async Task<IActionResult> GetMusic()
        {
            var musics = await AppService.Activity.GetMusicListAsync();
            return OkResult(musics);
        }

        [HttpGet("skin/list")]
        public async Task<IActionResult> GetSkin()
        {
            var skins = await AppService.Activity.GetSkinListAsync();
            return OkResult(skins);
        }
    }
}